package uk.co.jonlt.AndBus;

public class Bus {
    private String route;
    private String time;
    private String destination;
   
    // Constructor for the Phone book class
    public Bus(String route, String time, String destination) {
            super();
            this.route = route;
            this.time = time;
            this.destination = destination;
    }
   
    // Getter and setter methods for all the fields.
    // Though you would not be using the setters for this example,
    // it might be useful later.
    public String getRoute() {
            return route;
    }
    public void setName(String route) {
            this.route = route;
    }
    public String getTime() {
            return time;
    }
    public void setPhone(String time) {
            this.time = time;
    }
    public String getDestination() {
            return destination;
    }
    public void setDestination(String destination) {
            this.destination = destination;
    }
}
